/*
 * @Author: 星孑
 * @Date: 2022-03-10 15:24:22
 * @LastEditors: 星孑
 * @LastEditTime: 2022-04-07 09:53:37
 * @FilePath: /admin/src/api/login.js
 * @Description: 登录相关
 */
import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/member/admin/user/login',
    method: 'post',
    data
  })
}

export function logout() {
  return request({
    url: '/auth/logout',
    method: 'post'
  })
}

export function getUserInfo(token) {
  return request({
    url: '/member/admin/current',
    method: 'get'
  })
}

